From e633b13a18f7a7e407cba2de42a5a2a86aaec9c1 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 22 Mar 2018 18:02:19 +0100 Subject: [PATCH] x86emul: fix #XM delivery typo MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This clearly wasn't meant the way it was originally written. Reported-by: Roger Pau Monné Signed-off-by: Jan Beulich Reviewed-by: Roger Pau Monné Acked-by: Andrew Cooper --- xen/arch/x86/x86_emulate/x86_emulate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/x86_emulate/x86_emulate.c b/xen/arch/x86/x86_emulate/x86_emulate.c index d97e262386..3389050ab4 100644 --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -8662,7 +8662,7 @@ x86_emulate( { unsigned long cr4; - if ( !ops->read_cr || !ops->read_cr(4, &cr4, ctxt) == X86EMUL_OKAY ) + if ( !ops->read_cr || ops->read_cr(4, &cr4, ctxt) != X86EMUL_OKAY ) cr4 = X86_CR4_OSXMMEXCPT; generate_exception(cr4 & X86_CR4_OSXMMEXCPT ? EXC_XM : EXC_UD); } -- 2.30.2